package com.bwie.system.controller;

import com.bwie.common.domain.Men;
import com.bwie.common.result.Result;
import com.bwie.system.service.MenService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("menus")
@CrossOrigin
public class MenuController {

    @Autowired
    MenService menService;

    @PostMapping("menlistt")
    public Result menlistt (@RequestBody Men men){
      PageInfo<Men> menList= menService.menlistt(men);
      return Result.success(menList);
    }
}
